package com.shiro;

import java.util.Set;

/**
 * 用户身份凭证
 * @author Administrator
 *
 */
public class UserPrincipal {

	/**
	 * 用户ID
	 */
	private Long userId;

	/**
	 * 用户名(登录账号)
	 */
	private String username;

	/**
	 * 昵称
	 */
	private String nickname;

	/**
	 * 头像路径
	 */
	private String headImage;

	/**
	 * 状态  0：禁用   1：正常
	 */
	private Integer status;

	/**
	 * 权限加载状态
	 */
	private boolean permsLoad;
	
	/**
	 * 拥有的权限
	 */
	private Set<String> permsSet;

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public boolean isPermsLoad() {
		return permsLoad;
	}

	public void setPermsLoad(boolean permsLoad) {
		this.permsLoad = permsLoad;
	}

	public Set<String> getPermsSet() {
		return permsSet;
	}

	public void setPermsSet(Set<String> permsSet) {
		this.permsSet = permsSet;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getHeadImage() {
		return headImage;
	}

	public void setHeadImage(String headImage) {
		this.headImage = headImage;
	}
}
